package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbCarMapper;
import com.ruoyi.system.domain.TbCar;
import com.ruoyi.system.service.ITbCarService;

/**
 * addcarService业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-13
 */
@Service
public class TbCarServiceImpl implements ITbCarService 
{
    @Autowired
    private TbCarMapper tbCarMapper;

    /**
     * 查询addcar
     * 
     * @param carId addcar主键
     * @return addcar
     */
    @Override
    public TbCar selectTbCarByCarId(Integer carId)
    {
        return tbCarMapper.selectTbCarByCarId(carId);
    }

    /**
     * 查询addcar列表
     * 
     * @param tbCar addcar
     * @return addcar
     */
    @Override
    public List<TbCar> selectTbCarList(TbCar tbCar)
    {
        return tbCarMapper.selectTbCarList(tbCar);
    }

    /**
     * 新增addcar
     * 
     * @param tbCar addcar
     * @return 结果
     */
    @Override
    public int insertTbCar(TbCar tbCar)
    {
        return tbCarMapper.insertTbCar(tbCar);
    }

    /**
     * 修改addcar
     * 
     * @param tbCar addcar
     * @return 结果
     */
    @Override
    public int updateTbCar(TbCar tbCar)
    {
        return tbCarMapper.updateTbCar(tbCar);
    }

    /**
     * 批量删除addcar
     * 
     * @param carIds 需要删除的addcar主键
     * @return 结果
     */
    @Override
    public int deleteTbCarByCarIds(Integer[] carIds)
    {
        return tbCarMapper.deleteTbCarByCarIds(carIds);
    }

    /**
     * 删除addcar信息
     * 
     * @param carId addcar主键
     * @return 结果
     */
    @Override
    public int deleteTbCarByCarId(Integer carId)
    {
        return tbCarMapper.deleteTbCarByCarId(carId);
    }
}
